package utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Time2Str {
		private static SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSS");
		public static String currentTime(){
			return sdf.format(new Date());
		}
		public static void printCurrentTime(){
			System.out.println("======================" + currentTime());
		}
		public static void printCurrentTime(String str){
			System.out.println("======================" + currentTime() +"  " +str);
		}
		public static void printCurrentTime(int num){
			System.out.println("======================" + currentTime()+"  " +num);
		}
}
